package com.uni.domain;

import java.util.Date;

public class User extends Identifier {

	private static final long serialVersionUID = 4619633785412109213L;

	private String login;
    private String password = "";
    private String lastName;
    private String firstName;
    private String patrName;
    private String mail;
    private String phoneNumber;
    private String photo;

    private String testimonial;
    private String universityGroup;
    private Status status = Status.EXPULSION;
    private String currentPlaceOfEmployment;
    
    private Integer graduationYear;
    
    private Date dateOfBirth;
    private Date dateOfExpulsion;
    private Date dateAccepted;
    
    private Boolean professor = false;
    private Boolean admin = false;
    private Boolean student = false;
    private Boolean accepted = false;
    private Boolean active = false;
    
    private Group group;

    public User() {
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getPatrName() {
        return patrName;
    }

    public void setPatrName(String patrName) {
        this.patrName = patrName;
    }

    public Date getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(Date dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Group getGroup() {
        return group;
    }

    public void setGroup(Group groupId) {
        this.group = groupId;
    }

    public String getUniversityGroup() {
        return universityGroup;
    }

    public void setUniversityGroup(String universityGroup) {
        this.universityGroup = universityGroup;
    }

    public Integer getGraduationYear() {
        return graduationYear;
    }

    public void setGraduationYear(Integer graduationYear) {
        this.graduationYear = graduationYear;
    }

    public boolean isProfessor() {
        return professor.booleanValue();
    }

    public void setProfessor(boolean professor) {
        this.professor = professor;
    }

    public boolean isAdmin() {
        return admin.booleanValue();
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public void setStudent(boolean student) {
        this.student = student;
    }

    public boolean isStudent() {
        return student.booleanValue();
    }

    public String getTestimonial() {
        return testimonial;
    }

    public void setTestimonial(String testimonial) {
        this.testimonial = testimonial;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Date getDateOfExpulsion() {
        return dateOfExpulsion;
    }

    public void setDateOfExpulsion(Date dateOfExpulsion) {
        this.dateOfExpulsion = dateOfExpulsion;
    }

    public boolean isAccepted() {
        return accepted.booleanValue();
    }

    public void setAccepted(boolean acceptedForEmployment) {
        this.accepted = acceptedForEmployment;
    }

    public Date getDateAccepted() {
        return dateAccepted;
    }

    public void setDateAccepted(Date dateAccepted) {
        this.dateAccepted = dateAccepted;
    }

    public String getCurrentPlaceOfEmployment() {
        return currentPlaceOfEmployment;
    }

    public void setCurrentPlaceOfEmployment(String currentPlaceOfEmployment) {
        this.currentPlaceOfEmployment = currentPlaceOfEmployment;
    }

	public boolean getProfessor() {
		return professor.booleanValue();
	}
	
	public boolean getAdmin() {
		return admin.booleanValue();
	}

	public boolean getStudent() {
		return student.booleanValue();
	}

	public boolean getAccepted() {
		return accepted.booleanValue();
	}

	public boolean getActive() {
		return active.booleanValue();
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getMail() {
		return mail;
	}
	
	public String getFio(){
		return lastName + " " + firstName + " " + patrName;
	}
	
	public String getFi(){
		return lastName + " " + firstName;
	}
    
    
}
